package io.renren.controller;


import io.renren.common.utils.R;
import io.renren.entity.SchoolVIPPP;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.codec.DecoderException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.renren.service.saveSchoolDataService;

import java.io.UnsupportedEncodingException;

@RestController
@RequestMapping("/hahaha")
public class getDataController {
    @Autowired
    private saveSchoolDataService saveSchoolDataService;

    @PostMapping("saveSchool")
    @ApiOperation("初始化用户数据")
    public R updateUser(@RequestBody SchoolVIPPP school) throws DecoderException, UnsupportedEncodingException {
        saveSchoolDataService.saveScore(school);
        return R.ok();
    }
}
